package br.com.naybee.service.automacaoeletricafs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import br.com.naybee.domain.automacaoeletricabs.AutomacaoEletricaBs;
import br.com.naybee.framework.client.core.FrontServiceController;
import br.com.naybee.framework.client.models.Model;

@Controller
@RequestMapping("comandoAutomacaoFs")
public class AutomacaoEletricaFs extends FrontServiceController {

	@Autowired
	private AutomacaoEletricaBs automacaoEletricaBs;

	@ResponseBody
	@RequestMapping(value = "comandoIluminacao", method = RequestMethod.POST)
	public Model comandoIluminacao(@RequestBody Model model) {
		return automacaoEletricaBs.comandoIluminacao(model);
	}

	@ResponseBody
	@RequestMapping(value = "verificarConexaoArduino", method = RequestMethod.POST)
	public Model verificarConexaoArduino() {
		return automacaoEletricaBs.verificarConexaoArduino();
	}

}
